package hermesV3.services.TupleSpace.examples;

import hermesV3.services.TupleSpace.TupleException;

/**

 * @author Ambruoso Luigi
 * @author Addeo Vincenzo
 * 
 */

public class ContattoMail extends Contatto{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 7906443199706297259L;
	public static String MAIL="mail";
	public static String CONTATTOMAIL="ContattoMail";
	public ContattoMail() {
		super();
		this.addKey(CONTATTOMAIL);
		try {
			this.addField(MAIL, null);
		} catch (TupleException e) {
			
			e.printStackTrace();
		}
		
	}
	public void setMail(String n){
		try {
			this.setField(MAIL, n);
		} catch (TupleException e) {
			
			e.printStackTrace();
		}
	}
	public String getMail() {
		String s=null;
		try {
			s =(String) this.getField(MAIL);
		} catch (TupleException e) {
			
			e.printStackTrace();
		}
		return s;
	}
	
}
